package org.jeecg.modules.procurement.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.procurement.entity.BussMaterialProcurement;
import org.jeecg.modules.procurement.vo.BussMaterialProcurementDetailVo;
import org.jeecg.modules.procurement.vo.BussMaterialProcurementPage;
import org.jeecg.modules.procurement.vo.BussMaterialProcurementPageInfo;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 原料采购订单
 * @Author: jeecg-boot
 * @Date:   2024-06-06
 * @Version: V1.0
 */
public interface IBussMaterialProcurementService extends IService<BussMaterialProcurement> {

	IPage<BussMaterialProcurementPage> pagelist(Page<BussMaterialProcurementPage> page, QueryWrapper<BussMaterialProcurementPage> queryWrapper);


	/**
	 *
	 * @param page
	 * @param queryWrapper
	 * @return
	 */
	IPage<BussMaterialProcurementPage> procurementPage(Page<BussMaterialProcurementPage> page, QueryWrapper<BussMaterialProcurementPage> queryWrapper);

	/**
	 * 添加一对多
	 *
	 * @param bussMaterialProcurement
	 * @param bussMaterialProcurementDetailList
	 */
	public void saveMain(BussMaterialProcurement bussMaterialProcurement,List<BussMaterialProcurementDetailVo> details) ;
	
	/**
	 * 修改一对多
	 *
	 * @param bussMaterialProcurement
	 * @param bussMaterialProcurementDetailList
	 */
	public void updateMain(BussMaterialProcurement bussMaterialProcurement,List<BussMaterialProcurementDetailVo> details);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	IPage<BussMaterialProcurementPageInfo> arrayInfo(Page<BussMaterialProcurementPageInfo> page, QueryWrapper<BussMaterialProcurementPageInfo> queryWrapper);



	
}
